package io.renren.modules.shop.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author A夜兔A
 * @data 2021年11月16日 13:05
 */
@Data
@ApiModel("店铺类")
@TableName("shop_manage")
public class ShopManage {
    @ApiModelProperty("店铺Id")
    @TableId(type = IdType.AUTO)
    private Integer shopId;
    @ApiModelProperty("绑定的账户Id")
    private Long userId;
    @ApiModelProperty("店铺名称")
    private String shopName;
    @ApiModelProperty("店铺编号")
    private String shopNum;
    @ApiModelProperty("店铺负责人")
    private String shopLeader;
    @ApiModelProperty("店铺电话")
    private String telephone;
    @ApiModelProperty("店铺地址")
    private String address;
    @ApiModelProperty("店铺软件开始使用时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:MM:ss")
    private Date beginDate;
    @ApiModelProperty("店铺软件到期时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:MM:ss")
    private Date endDate;
    @TableField(exist = false)
    private String username;


}
